#!/bin/bash
echo "[+] Updating reslov.conf"
cp -rv /tmp/resolv.conf /etc/resolv.conf
echo "[+] Mounting /proc and /sys on target folder.."
mount -t proc none /proc
mount -t sysfs sysfs /sys

echo "[+] Updating sources and install dbus"
apt-get update
apt-get install --yes dbus
dbus-uuidgen > /var/lib/dbus/machine-id
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
